package com.isaac.sqlSession;

import com.isaac.pojo.Configuration;

public class DefultSqlSessionFactory implements SqlSessionFactory {
    private Configuration configuration;

    public DefultSqlSessionFactory(Configuration configuration) {
        this.configuration = configuration;
    }

    @Override
    public SqlSession openSession() {
        return new DefaultSqlSession(configuration);
    }
}
